package com.itheima.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ClazzPageRequest {
    /*
    * 班级名称
    * */
    private String name;

    /*
    * 开课时间
    * */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate begin;

    /*
    * 结课时间
    * */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate end;


    /*
    * 页码
    * */
    private Integer page = 1;


    /*
    * 每页的记录数
    * */
    private Integer pageSize = 10;
}
